package com.ftg.learn.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 角色菜单关联表
 * </p>
 *
 * @author lalala
 * @since 2022-03-07
 */
@TableName("sys_role_menu")
@ApiModel(value = "RoleMenu对象", description = "角色菜单关联表")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色菜单关联表ID")
    @TableId(value = "rmid", type = IdType.AUTO)
    private Long rmid;

    @ApiModelProperty("角色ID")
    private Long rid;

    @ApiModelProperty("菜单ID")
    private Long mid;

    public Long getRmid() {
        return rmid;
    }

    public void setRmid(Long rmid) {
        this.rmid = rmid;
    }
    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }
    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    @Override
    public String toString() {
        return "RoleMenu{" +
            "rmid=" + rmid +
            ", rid=" + rid +
            ", mid=" + mid +
        "}";
    }
}
